package it.fuesi.synoutils.model.base;

/**
 * Created by pascotto on 16/10/14.
 */
public abstract class SynologyBaseResponse<T extends ADataObject> {

    private boolean success;
    private ErrorObject error;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public abstract  T getData();

    public abstract void setData(T data) ;

    public ErrorObject getError() {
        return error;
    }

    public void setError(ErrorObject error) {
        this.error = error;
    }
}
